<!DOCTYPE html>
<html>
<head>
    <style>
        @keyframes ball {
            0% {
                left: 0px;
            }

            50% {
                left: 350px;
            }

            100% {
                left: 0px;
            }
        }

        div {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid black;
            text-align: center;
            line-height: 100px;
            position: relative;
            animation-name: ball;
            animation-duration: 2s;
        }

        .one {
            animation-timing-function: ease;
        }

        .two {
            animation-timing-function: ease-in;
        }

        .three {
            animation-timing-function: ease-out;
        }

        .four {
            animation-timing-function: ease-in-out;
        }
    </style>
</head>
<body>
    <div class="one">ease</div>
    <div class="two">ease-in</div>
    <div class="three">ease-out</div>
    <div class="four">ease-in-out</div>
</body>
</html>